<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			class Star
			{
				constructor(uname,uage)   //构造函数
				{
					this.name=uname;   //直接就定义了属性了
					this.age=uage;
				}
			}
			 var mx1=new Star("林润钿",19);
			 console.log(mx1.name+mx1.age);
			 console.log(mx1);
		</script>
	</head>
	<body>
	</body>
</html>